function __serverName(){if(typeof process!='undefined'){if(process.env.NODE_ENV == 'development'){return "/youyaboot-admin";}}var href = window.location.href.replace("https://","").replace("http://","");if(href.indexOf("/magicalcoder/")==-1){return "/youyaboot-admin";}var pre = href.split("?")[0];var arr = pre.split("/magicalcoder/");if(arr[0].indexOf("/")==-1){return "";}var newArr = arr[0].split("/");newArr[0]="";var realPath = newArr.join("/");return realPath;}
if(typeof String.prototype.endsWith != 'function') {String.prototype.endsWith = function (suffix){return this.slice(-1*suffix.length) === suffix;};}var __import = function(imports){var resources = [];for(var i=0;i<imports.length;i++){if(!imports[i]){continue;}if(imports[i].endsWith(".js")){resources.push('<script src="'+imports[i]+'" type="text/javascript"></sc' + 'ript>');}else if(imports[i].endsWith(".css")){resources.push('<link href='+imports[i]+' rel="stylesheet" type="text/css" />');}}document.write(resources.join(''));}
/*
    您自定义的组件的渲染逻辑都可以在下面引入进来:这些资源是脱离布局器独立运行的最小化依赖资源
*/
__import([
    "assets/drag/js/user/iframe/magicalcoder/components/magicalcoder.css",
        "assets/drag/ui/element/latest/element.css",
        "assets/drag/js/lib/leaflet/leaflet.css",
        "assets/drag/js/lib/json3.js",
        "assets/drag/js/lib/jscore.js",
        "assets/drag/js/lib/vue/es6-promise.auto.min.js",
        "assets/drag/js/lib/vue/es6-promise.min.js",
        "assets/drag/js/lib/echarts/5.0.2/echarts.min.js",
        "assets/drag/js/lib/echarts/5.0.2/china.js",
        "assets/drag/js/lib/echarts/5.0.2/ecstat.js",
        "assets/drag/js/lib/echarts/5.0.2/extension/datatool.min.js",
        "assets/drag/js/lib/vue/vue.js",
        "assets/drag/ui/element/latest/element.js",
        "assets/drag/js/lib/vue/axios.js",
        "assets/drag/js/lib/leaflet/leaflet.js",
        /*引入自动滚动*/
        "assets/drag/js/lib/scroll/vue-seamless-scroll.min.js",
        /*引入vxe-table*/
        "assets/drag/js/lib/vue-table/3.2.1/style.css",
        "assets/drag/js/lib/vue-table/3.2.1/xe-utils.js",
        "assets/drag/js/lib/vue-table/3.2.1/vxe-table.js",
        "assets/drag/js/lib/mc/magicaltool.js",
    /*全局工具类：请勿删除 */
    "assets/drag/js/user/iframe/magicalcoder/components/mc-utils.js",
    /*end*/
  "assets/drag/js/user/iframe/element/latest/components/mc-official.js",
  "assets/drag/js/user/iframe/element/latest/components/iframe.js",
])
function IframeComponents (){
}
/*这个方法会在html渲染完主动执行 已经写入constant.js的defaultJavascript默认脚本了*/
IframeComponents.prototype.execute = function(param){
    //从后台获取需要加载的资源
    var iframeComponents = ___mcUtils.iframeComponents;
    for(var i=0;i<iframeComponents.length;i++){
        var component = iframeComponents[i];
        if(component['render']){
            component.render(param);
        }else{
            console.log("以下组件缺少render方法"+component)
        }
    }
}
